package com.foreveredu.erlms.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/*
 * @author hushigang 2012/4/8
 * 领域模型类——报考等级
 */
@Entity
@Table(name = "rank")
public class Rank implements Serializable {

	private static final long serialVersionUID = 1L;
	private int id;// 编号
	private String code;// 报考等级代码
	private String name;// 报考等级名称
	private int flag;// 0代表无效，1代表有效

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Column
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column
	public int getFlag() {
		return flag;
	}

	public void setFlag(int flag) {
		this.flag = flag;
	}

}
